﻿using System;
using System.ServiceModel;
using HelloService;

namespace TheHost
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceHost helloHost = new ServiceHost(typeof(HowdyService));
            helloHost.Open();

            ServiceHost fileHost = new ServiceHost(typeof (FileTransfer));
            fileHost.Open();

            Console.WriteLine("Services started at. Press [ENTER] to stop");
            Console.ReadKey();
            helloHost.Close();
            fileHost.Close();
        }
    }
}